package model

import (
	"gorm.io/gorm"
	__ "petCombo-srv/proto"
)

type Address struct {
	gorm.Model
	Name    string `json:"name"`
	Phone   string `json:"phone"`
	Address string `gorm:"type:varchar(255)" json:"address"`
}

func (a *Address) AddressList(db *gorm.DB) []*__.AddressList {
	var address []*__.AddressList

	db.Model(&Address{}).Find(&address)
	return address

}
